#include<iostream>
using namespace std;
double cube(const double &a)
{
	return a*a*a;
}
int main()
{
	double side = 3.0;
	double *pd = &side;
	double& rd = side;
	long edge = 5L;
	double lens[4] = {2.0,5.0,10.0,12.0};
	// 计算c1= 27
	double c1 = cube(side);
	// 计算c2 = 1000;
	double c2 = cube(lens[2]);
	// 计算c3 = 27
	double c3 = cube(rd);
	// 计算c4 = 27
	double c4 = cube(*pd);
	// 计算c5 = 125,临时变量
	double c5 = cube(edge);
	// 计算c6 = 343，临时变量
	double c6 = cube(7.0);
	// 计算13的立方，临时变量
	double c7 = cube(side+10.0);
}
